package com.suanfa8.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.suanfa8.entity.Company;
import com.suanfa8.mapper.CompanyMapper;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> implements ICompanyService {

    // 例如，您可以添加一个自定义的业务方法来查询公司信息
    public List<Company> getCompaniesByAge(int age) {
        QueryWrapper<Company> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("AGE", age);
        return baseMapper.selectList(queryWrapper);
    }

}